﻿using System;
using HelpersDotNet.Configuration;
using System.Configuration;

namespace HelpersDotNet.DomainDrivenDesign.Infrastructure.RepositoryFramework.Configuration
{
    public class RepositoryMappingCollection :
        ConfigurationElementCollectionBase<RepositoryMappingElement>
    {
        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((RepositoryMappingElement)element).InterfaceShortTypeName;
        }
    }
}
